package com.qf.exception;

import com.qf.vo.ResultVo;
import com.qf.vo.ResultVoUtils;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice

public class NewsExceptionHandler {

    @ExceptionHandler(NewsException.class)
    public ResultVo err(NewsException ex){
       return ResultVoUtils.err(ex);
    }

}
